package com.woniuxy.demo1;

public class CookieProxy implements CookieService{
    private CookieService cookieService;

    public CookieProxy() {
        this.cookieService = new CookieServiceImpl();
    }

    @Override
    public void chaocai() {
        System.out.println("买菜");
        System.out.println("洗菜");
        System.out.println("切菜");
        this.cookieService.chaocai();
        System.out.println("刷碗");
    }
}
